﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ComponentModel;
using System.ComponentModel.DataAnnotations;

namespace Atomic.User.Entities
{
    /// <summary>
    /// 自定义用户类型
    /// </summary>
    public class UserTypeEntity
    {
        /// <summary>
        /// 类型ID（主键）
        /// </summary>
        public virtual int ID
        {
            get;
            set;
        }

        /// <summary>
        /// 用户类型名称
        /// </summary>
        [DisplayName("用户类型名称")]
        [Required]
        [StringLength(20)]
        public virtual string Name
        {
            get;
            set;
        }

        /// <summary>
        /// 用户类型对应表名
        /// </summary>
        public virtual string Table
        {
            get
            {
                return string.Format("UserExtend{0}", ID);
            }
        }
    }
}
